package com.zjf.carpark.service.impl;


import com.zjf.carpark.dao.AnnouncementsMapper;
import com.zjf.carpark.entities.Announcements;
import com.zjf.carpark.service.AnnouncementsService;
import com.zjf.carpark.vo.AnnounceVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AnnouncementsServiceImpl extends BaseServiceImpl<Announcements> implements AnnouncementsService {

    @Autowired
    private AnnouncementsMapper announcementsMapper;


    @Override
    public int deleteAnnouncements(Integer[] announcementsId_arr) {
        return announcementsMapper.deleteAnnouncements(announcementsId_arr);
    }

    @Override
    public List<Announcements> showAllByMsg(AnnounceVO announceVO) {
        return announcementsMapper.selectAllByMsg(announceVO);
    }
    @Override
    public int totalCount(AnnounceVO announceVO) {
        return announcementsMapper.totalCount(announceVO);
    }
}
